<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><?php echo $meta["title"]; ?></title>
    <meta http-equiv='Content-Type' content='text/html; charset=utf8' />
    <meta name = 'author' content = 'Denis Popov' />
    <meta name='description' content='<?php 
                    echo $meta["description"]
                    ?>' />
    <meta name='keywords' content='<?php 
                    echo $meta["keywords"]
                    ?>' />
    <link rel='stylesheet' href='<?php echo $addr.'/template/'.$tpl; ?>/styles/main.css' type='text/css' />
    <script type="text/javascript" src="<?php echo $addr.'/template/'.$tpl; ?>/scr/img.js"></script>
    <script type="text/javascript" src="<?php echo $addr; ?>/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
      <script type="text/javascript">
      tinyMCE.init({
      language : "ru", // change language here
      mode : "exact",
      elements : "short,full,content",
      theme : "advanced",
      skin : "o2k7",
      skin_variant : "black",
      theme_advanced_toolbar_location : "top",
      theme_advanced_toolbar_align : "left",
      theme_advanced_path_location : "bottom"
      });
      </script>
    
</head>  
<body onload="preload('<?php echo $addr.'/template/'.$tpl; ?>/images/mainhover.png','<?php echo $addr.'/template/'.$tpl; ?>/images/musichover.png','<?php echo $addr.'/template/'.$tpl; ?>/images/newshover.png','<?php echo $addr.'/template/'.$tpl; ?>/images/forumhover.png','<?php echo $addr.'/template/'.$tpl; ?>/images/infohover.png','<?php echo $addr.'/template/'.$tpl; ?>/images/RSShover.png','<?php echo $addr.'/template/'.$tpl; ?>/images/leftlink.png','<?php echo $addr.'/template/'.$tpl; ?>/images/leftlinkhover.png','<?php echo $addr.'/template/'.$tpl; ?>/images/add_track.png','<?php echo $addr.'/template/'.$tpl; ?>/images/add_track_h.png','<?php echo $addr.'/template/'.$tpl; ?>/images/add_cat.png','<?php echo $addr.'/template/'.$tpl; ?>/images/add_cat_h.png')">
<div class = 'w980p'>
    <?php require "header.tpl"; ?>
    <div class="flleft w250p">
		<?php require 'sidebar.tpl'; ?>
    </div>
    <div class="flright w730p">
        <div class="alright">
            <div class="toplinks flright alcenter">
                <a href="/" onmouseout="ChangeImg('main','<?php echo $addr.'/template/'.$tpl; ?>/images/main.png')" onmouseover="ChangeImg('main','<?php echo $addr.'/template/'.$tpl; ?>/images/mainhover.png')"><img src="<?php echo $addr.'/template/'.$tpl; ?>/images/main.png" alt="main" name="main" width="110" height="20"/></a><a href="/music" onmouseout="ChangeImg('music','<?php echo $addr.'/template/'.$tpl; ?>/images/music.png')" onmouseover="ChangeImg('music','<?php echo $addr.'/template/'.$tpl; ?>/images/musichover.png')"><img src="<?php echo $addr.'/template/'.$tpl; ?>/images/music.png" alt="music" name="music" width="95" height="20"/></a><a href="/news" onmouseout="ChangeImg('news','<?php echo $addr.'/template/'.$tpl; ?>/images/news.png')" onmouseover="ChangeImg('news','<?php echo $addr.'/template/'.$tpl; ?>/images/newshover.png')"><img src="<?php echo $addr.'/template/'.$tpl; ?>/images/news.png" alt="news" name="news" width="95" height="20"/></a><a href="/" onmouseout="ChangeImg('info','<?php echo $addr.'/template/'.$tpl; ?>/images/info.png')" onmouseover="ChangeImg('info','<?php echo $addr.'/template/'.$tpl; ?>/images/infohover.png')"><img src="<?php echo $addr.'/template/'.$tpl; ?>/images/info.png" alt="info" name="info" width="95" height="20"/></a><a href="/" onmouseout="ChangeImg('rss','<?php echo $addr.'/template/'.$tpl; ?>/images/RSS.png')" onmouseover="ChangeImg('rss','<?php echo $addr.'/template/'.$tpl; ?>/images/RSShover.png')"><img src="<?php echo $addr.'/template/'.$tpl; ?>/images/RSS.png" alt="rss" name="rss" width="72" height="20"/></a>
            </div>
        </div>  
        <div class="divclear"></div>
                <!--Content Block Start-->    
        <?php
            if (isset($message)) require 'information.tpl'; 
            if ((isset($datype))&&(($datype=="index")||($datype=="category")||($datype=="byArtist")||($datype=="byAuthor")||($datype=="byGenre")||($datype=="byAlbum")||($datype=="byYear"))){
                if ($posts > 1) require 'sort.tpl';
            }           
        ?>              
